#include "simple_handler.h"

simple_handler::simple_handler() {
	count = 0;
}

bool simple_handler::output(if_t i) throw() {
	count++;
	// Important: return false will cause the computation to immediately stop
	return false;
}

void simple_handler::clear() {
	count = 0;
}

int simple_handler::getNumOutput() {
	return count;
}
